home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / develop™ Technical Journal / develop Issue 26 code / Truffles-Display Mgr.sit / Truffles - Display Mgr. / Sprocket / Sources / DialogWindow.cp < prev    next >
MacBinary  |  1996-01-03  |  9.0 KB  |  [TEXT/MMCC]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert MS-DOS Code Page Info (other/dosCodePage) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Jan 2 19:56:25 1996, modified Tue Jan 2 19:56:25 1996, creator 'MMCC', type ASCII, 8272 bytes "DialogWindow.cp" , at 0x20d0 706 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MMCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 44 69 61 6c 6f 67 | 57 69 6e 64 6f 77 2e 63 |..Dialog|Window.c|
|00000010| 70 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |p.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 01 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 20 50 00 | 00 02 c2 ad 0f 84 b9 ad |..... P.|........|
|00000060| 0f 84 b9 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 b4 e8 00 00 |........|........|
|00000080| 2f 2a 0d 09 46 69 6c 65 | 3a 09 09 44 69 61 6c 6f |/*..File|:..Dialo|
|00000090| 67 57 69 6e 64 6f 77 2e | 63 70 0d 0d 09 43 6f 6e |gWindow.|cp...Con|
|000000a0| 74 61 69 6e 73 3a 09 49 | 6d 70 6c 65 6d 65 6e 74 |tains:.I|mplement|
|000000b0| 61 74 69 6f 6e 20 6f 66 | 20 61 20 62 61 73 65 20 |ation of| a base |
|000000c0| 63 6c 61 73 73 20 66 6f | 72 20 4d 6f 64 65 6c 65 |class fo|r Modele|
|000000d0| 73 73 20 44 69 61 6c 6f | 67 73 0d 09 09 09 09 0d |ss Dialo|gs......|
|000000e0| 09 57 72 69 74 74 65 6e | 20 62 79 3a 20 44 61 76 |.Written| by: Dav|
|000000f0| 65 20 46 61 6c 6b 65 6e | 62 75 72 67 0d 0d 09 43 |e Falken|burg...C|
|00000100| 6f 70 79 72 69 67 68 74 | 3a 09 a9 20 31 39 39 33 |opyright|:.. 1993|
|00000110| 2d 31 39 39 35 20 62 79 | 20 44 61 76 65 20 46 61 |-1995 by| Dave Fa|
|00000120| 6c 6b 65 6e 62 75 72 67 | 2c 20 61 6c 6c 20 72 69 |lkenburg|, all ri|
|00000130| 67 68 74 73 20 72 65 73 | 65 72 76 65 64 2e 0d 0d |ghts res|erved...|
|00000140| 09 43 68 61 6e 67 65 20 | 48 69 73 74 6f 72 79 20 |.Change |History |
|00000150| 28 6d 6f 73 74 20 72 65 | 63 65 6e 74 20 66 69 72 |(most re|cent fir|
|00000160| 73 74 29 3a 0d 09 0d 09 | 09 20 3c 38 3e 09 20 31 |st):....|. <8>. 1|
|00000170| 2f 32 30 2f 39 35 09 44 | 52 46 09 09 44 65 61 6c |/20/95.D|RF..Deal|
|00000180| 20 77 69 74 68 20 6e 65 | 77 20 6d 65 6e 75 20 63 | with ne|w menu c|
|00000190| 6f 6d 6d 61 6e 64 20 63 | 68 61 6e 67 65 73 2e 20 |ommand c|hanges. |
|000001a0| 41 6c 73 6f 20 66 69 78 | 65 64 20 62 75 67 20 77 |Also fix|ed bug w|
|000001b0| 68 65 72 65 20 77 65 0d | 09 09 09 09 09 09 09 09 |here we.|........|
|000001c0| 09 77 65 72 65 6e d5 74 | 20 64 69 73 70 6f 73 69 |.weren.t| disposi|
|000001d0| 6e 67 20 6f 66 20 54 44 | 69 61 6c 6f 67 57 69 6e |ng of TD|ialogWin|
|000001e0| 64 6f 77 73 20 75 73 69 | 6e 67 20 44 69 73 70 6f |dows usi|ng Dispo|
|000001f0| 73 65 44 69 61 6c 6f 67 | 2e 0d 09 09 20 3c 37 3e |seDialog|.... <7>|
|00000200| 09 31 31 2f 31 36 2f 39 | 34 09 44 52 46 09 09 41 |.11/16/9|4.DRF..A|
|00000210| 64 64 65 64 20 65 78 70 | 6c 69 63 69 74 20 23 69 |dded exp|licit #i|
|00000220| 6e 63 6c 75 64 65 20 3c | 54 72 61 70 73 2e 68 3e |nclude <|Traps.h>|
|00000230| 20 66 6f 72 20 6c 61 74 | 65 73 74 20 75 6e 69 76 | for lat|est univ|
|00000240| 65 72 73 61 6c 20 68 65 | 61 64 65 72 73 2e 0d 09 |ersal he|aders...|
|00000250| 09 20 3c 36 3e 09 31 31 | 2f 31 32 2f 39 34 09 44 |. <6>.11|/12/94.D|
|00000260| 52 46 09 09 46 69 78 20 | 61 20 62 75 67 20 69 6e |RF..Fix |a bug in|
|00000270| 20 45 76 65 6e 74 46 69 | 6c 74 65 72 20 6d 65 74 | EventFi|lter met|
|00000280| 68 6f 64 20 77 68 69 63 | 68 20 72 65 74 75 72 6e |hod whic|h return|
|00000290| 65 64 20 66 61 6c 73 65 | 20 65 76 65 6e 20 69 66 |ed false| even if|
|000002a0| 20 61 0d 09 09 09 09 09 | 09 09 09 09 64 69 61 6c | a......|....dial|
|000002b0| 6f 67 20 69 74 65 6d 20 | 77 61 73 20 68 69 74 2e |og item |was hit.|
|000002c0| 0d 09 09 20 3c 35 3e 09 | 20 31 31 2f 38 2f 39 34 |... <5>.| 11/8/94|
|000002d0| 09 44 52 46 09 09 57 65 | 20 68 61 76 65 20 62 65 |.DRF..We| have be|
|000002e0| 74 74 65 72 20 6d 65 6e | 75 20 68 61 6e 64 6c 69 |tter men|u handli|
|000002f0| 6e 67 20 6d 65 74 68 6f | 64 73 2c 20 73 6f 20 75 |ng metho|ds, so u|
|00000300| 73 65 20 74 68 65 6d 20 | 69 6e 73 74 65 61 64 20 |se them |instead |
|00000310| 6f 66 20 74 68 65 0d 09 | 09 09 09 09 09 09 09 09 |of the..|........|
|00000320| 6f 6c 64 20 d2 44 6f 45 | 64 69 74 4d 65 6e 75 d3 |old .DoE|ditMenu.|
|00000330| 20 6d 65 74 68 6f 64 2e | 0d 09 09 20 3c 33 3e 09 | method.|... <3>.|
|00000340| 31 30 2f 31 37 2f 39 34 | 09 44 52 46 09 20 09 49 |10/17/94|.DRF. .I|
|00000350| 74 65 6d 48 69 74 20 69 | 73 20 6e 6f 77 20 61 20 |temHit i|s now a |
|00000360| 70 75 72 65 2d 76 69 72 | 74 75 61 6c 20 6d 65 74 |pure-vir|tual met|
|00000370| 68 6f 64 2e 20 46 69 78 | 65 64 20 62 75 67 73 20 |hod. Fix|ed bugs |
|00000380| 69 6e 20 44 6f 45 64 69 | 74 4d 65 6e 75 2e 0d 09 |in DoEdi|tMenu...|
|00000390| 09 20 09 09 09 09 09 09 | 09 43 61 6c 6c 20 53 74 |. ......|.Call St|
|000003a0| 64 46 69 6c 74 65 72 50 | 72 6f 63 20 69 6e 73 69 |dFilterP|roc insi|
|000003b0| 64 65 20 45 76 65 6e 74 | 46 69 6c 74 65 72 20 74 |de Event|Filter t|
|000003c0| 6f 20 68 61 6e 64 6c 65 | 20 6f 6b 2c 20 63 61 6e |o handle| ok, can|
|000003d0| 63 65 6c 2c 0d 09 09 09 | 09 09 09 09 09 09 61 6e |cel,....|......an|
|000003e0| 64 20 49 2d 62 65 61 6d | 20 63 75 72 73 6f 72 20 |d I-beam| cursor |
|000003f0| 74 72 61 63 6b 69 6e 67 | 2e 0d 09 09 20 3c 33 3e |tracking|.... <3>|
|00000400| 09 20 39 2f 32 37 2f 39 | 34 09 44 52 46 09 20 09 |. 9/27/9|4.DRF. .|
|00000410| 41 70 70 4c 69 62 2e 68 | 20 69 73 20 6e 6f 77 20 |AppLib.h| is now |
|00000420| 53 70 72 6f 63 6b 65 74 | 2e 68 0d 09 09 20 3c 32 |Sprocket|.h... <2|
|00000430| 3e 09 20 20 39 2f 39 2f | 39 34 09 44 52 46 09 09 |>. 9/9/|94.DRF..|
|00000440| 52 65 6f 72 64 65 72 65 | 64 20 68 65 61 64 65 72 |Reordere|d header|
|00000450| 73 20 61 6e 64 20 72 65 | 6d 6f 76 65 64 20 72 65 |s and re|moved re|
|00000460| 64 75 6e 64 61 6e 74 20 | 23 69 6e 63 6c 75 64 65 |dundant |#include|
|00000470| 73 2e 20 41 6c 73 6f 20 | 66 69 78 65 64 0d 09 09 |s. Also |fixed...|
|00000480| 09 09 09 09 09 09 09 63 | 6f 6e 73 74 61 6e 74 73 |.......c|onstants|
|00000490| 20 69 6e 20 44 6f 45 64 | 69 74 4d 65 6e 75 2e 0d | in DoEd|itMenu..|
|000004a0| 20 2a 2f 0d 0d 23 69 6e | 63 6c 75 64 65 20 22 53 | */..#in|clude "S|
|000004b0| 70 72 6f 63 6b 65 74 2e | 68 22 0d 23 69 6e 63 6c |procket.|h".#incl|
|000004c0| 75 64 65 20 22 44 69 61 | 6c 6f 67 57 69 6e 64 6f |ude "Dia|logWindo|
|000004d0| 77 2e 68 22 0d 23 69 6e | 63 6c 75 64 65 20 22 53 |w.h".#in|clude "S|
|000004e0| 74 61 6e 64 61 72 64 4d | 65 6e 75 73 2e 68 22 0d |tandardM|enus.h".|
|000004f0| 23 69 6e 63 6c 75 64 65 | 20 3c 54 72 61 70 73 2e |#include| <Traps.|
|00000500| 68 3e 0d 0d 54 44 69 61 | 6c 6f 67 57 69 6e 64 6f |h>..TDia|logWindo|
|00000510| 77 3a 3a 54 44 69 61 6c | 6f 67 57 69 6e 64 6f 77 |w::TDial|ogWindow|
|00000520| 28 44 69 61 6c 6f 67 54 | 79 70 65 20 64 69 61 6c |(DialogT|ype dial|
|00000530| 6f 67 54 79 70 65 2c 20 | 44 69 61 6c 6f 67 54 65 |ogType, |DialogTe|
|00000540| 6d 70 6c 61 74 65 49 44 | 20 74 68 65 44 69 61 6c |mplateID| theDial|
|00000550| 6f 67 54 65 6d 70 6c 61 | 74 65 29 0d 09 7b 0d 09 |ogTempla|te)..{..|
|00000560| 66 54 65 6d 70 6c 61 74 | 65 49 44 20 3d 20 74 68 |fTemplat|eID = th|
|00000570| 65 44 69 61 6c 6f 67 54 | 65 6d 70 6c 61 74 65 3b |eDialogT|emplate;|
|00000580| 0d 09 66 49 73 44 69 61 | 6c 6f 67 57 69 6e 64 6f |..fIsDia|logWindo|
|00000590| 77 20 3d 20 74 72 75 65 | 3b 0d 0d 09 74 68 69 73 |w = true|;...this|
|000005a0| 2d 3e 43 72 65 61 74 65 | 57 69 6e 64 6f 77 28 28 |->Create|Window((|
|000005b0| 28 64 69 61 6c 6f 67 54 | 79 70 65 20 3d 3d 20 6b |(dialogT|ype == k|
|000005c0| 4d 6f 64 61 6c 44 69 61 | 6c 6f 67 29 20 3f 20 6b |ModalDia|log) ? k|
|000005d0| 4d 6f 64 61 6c 57 69 6e | 64 6f 77 20 3a 20 6b 4e |ModalWin|dow : kN|
|000005e0| 6f 72 6d 61 6c 57 69 6e | 64 6f 77 29 29 3b 0d 09 |ormalWin|dow));..|
|000005f0| 7d 0d 0d 0d 57 69 6e 64 | 6f 77 52 65 66 0d 54 44 |}...Wind|owRef.TD|
|00000600| 69 61 6c 6f 67 57 69 6e | 64 6f 77 3a 3a 4d 61 6b |ialogWin|dow::Mak|
|00000610| 65 4e 65 77 57 69 6e 64 | 6f 77 28 57 69 6e 64 6f |eNewWind|ow(Windo|
|00000620| 77 52 65 66 20 62 65 68 | 69 6e 64 57 69 6e 64 6f |wRef beh|indWindo|
|00000630| 77 29 0d 09 7b 0d 09 72 | 65 74 75 72 6e 20 47 65 |w)..{..r|eturn Ge|
|00000640| 74 44 69 61 6c 6f 67 57 | 69 6e 64 6f 77 20 28 20 |tDialogW|indow ( |
|00000650| 47 65 74 4e 65 77 44 69 | 61 6c 6f 67 28 66 54 65 |GetNewDi|alog(fTe|
|00000660| 6d 70 6c 61 74 65 49 44 | 2c 6e 69 6c 2c 20 28 57 |mplateID|,nil, (W|
|00000670| 69 6e 64 6f 77 52 65 66 | 29 20 62 65 68 69 6e 64 |indowRef|) behind|
|00000680| 57 69 6e 64 6f 77 29 29 | 3b 0d 09 7d 0d 0d 0d 42 |Window))|;..}...B|
|00000690| 6f 6f 6c 65 61 6e 0d 54 | 44 69 61 6c 6f 67 57 69 |oolean.T|DialogWi|
|000006a0| 6e 64 6f 77 3a 3a 43 6c | 6f 73 65 28 76 6f 69 64 |ndow::Cl|ose(void|
|000006b0| 29 0d 09 7b 0d 2f 2f 09 | 57 65 20 68 61 76 65 20 |)..{.//.|We have |
|000006c0| 74 6f 20 64 6f 20 74 68 | 69 73 20 69 6e 20 63 61 |to do th|is in ca|
|000006d0| 73 65 20 61 6c 6c 20 77 | 65 20 61 72 65 20 74 68 |se all w|e are th|
|000006e0| 65 20 6c 61 73 74 20 77 | 69 6e 64 6f 77 20 6f 70 |e last w|indow op|
|000006f0| 65 6e 0d 2f 2f 09 57 65 | 20 64 6f 6e 27 74 20 77 |en.//.We| don't w|
|00000700| 61 6e 74 20 74 6f 20 6c | 65 61 76 65 20 74 68 65 |ant to l|eave the|
|00000710| 20 6d 65 6e 75 20 69 74 | 65 6d 73 20 65 6e 61 62 | menu it|ems enab|
|00000720| 6c 65 64 0d 0d 09 67 4d | 65 6e 75 42 61 72 2d 3e |led...gM|enuBar->|
|00000730| 45 6e 61 62 6c 65 43 6f | 6d 6d 61 6e 64 20 28 20 |EnableCo|mmand ( |
|00000740| 63 43 75 74 2c 09 09 09 | 66 61 6c 73 65 20 29 3b |cCut,...|false );|
|00000750| 0d 09 67 4d 65 6e 75 42 | 61 72 2d 3e 45 6e 61 62 |..gMenuB|ar->Enab|
|00000760| 6c 65 43 6f 6d 6d 61 6e | 64 20 28 20 63 43 6f 70 |leComman|d ( cCop|
|00000770| 79 2c 09 09 66 61 6c 73 | 65 20 29 3b 0d 09 67 4d |y,..fals|e );..gM|
|00000780| 65 6e 75 42 61 72 2d 3e | 45 6e 61 62 6c 65 43 6f |enuBar->|EnableCo|
|00000790| 6d 6d 61 6e 64 20 28 20 | 63 50 61 73 74 65 2c 09 |mmand ( |cPaste,.|
|000007a0| 09 66 61 6c 73 65 20 29 | 3b 0d 09 67 4d 65 6e 75 |.false )|;..gMenu|
|000007b0| 42 61 72 2d 3e 45 6e 61 | 62 6c 65 43 6f 6d 6d 61 |Bar->Ena|bleComma|
|000007c0| 6e 64 20 28 20 63 43 6c | 65 61 72 2c 09 09 66 61 |nd ( cCl|ear,..fa|
|000007d0| 6c 73 65 20 29 3b 0d 09 | 67 4d 65 6e 75 42 61 72 |lse );..|gMenuBar|
|000007e0| 2d 3e 45 6e 61 62 6c 65 | 43 6f 6d 6d 61 6e 64 20 |->Enable|Command |
|000007f0| 28 20 63 53 65 6c 65 63 | 74 41 6c 6c 2c 09 66 61 |( cSelec|tAll,.fa|
|00000800| 6c 73 65 20 29 3b 0d 0d | 09 72 65 74 75 72 6e 20 |lse );..|.return |
|00000810| 54 57 69 6e 64 6f 77 3a | 3a 43 6c 6f 73 65 28 29 |TWindow:|:Close()|
|00000820| 3b 0d 09 7d 0d 0d 0d 2f | 2f 2f 2f 2f 2f 2f 2f 2f |;..}.../|////////|
|00000830| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000840| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000850| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000860| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000870| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 0d 2f 2f 0d 2f |////////|///.//./|
|00000880| 2f 09 45 76 65 6e 74 46 | 69 6c 74 65 72 20 73 74 |/.EventF|ilter st|
|00000890| 72 61 74 65 67 79 20 66 | 6f 72 20 44 69 61 6c 6f |rategy f|or Dialo|
|000008a0| 67 20 57 69 6e 64 6f 77 | 0d 2f 2f 0d 2f 2f 09 42 |g Window|.//.//.B|
|000008b0| 65 63 61 75 73 65 20 6f | 66 20 74 68 65 20 6e 65 |ecause o|f the ne|
|000008c0| 65 64 20 74 6f 20 70 61 | 74 63 68 20 61 6e 64 20 |ed to pa|tch and |
|000008d0| 75 6e 70 61 74 63 68 20 | 46 72 6f 6e 74 57 69 6e |unpatch |FrontWin|
|000008e0| 64 6f 77 20 77 68 65 6e | 20 63 61 6c 6c 69 6e 67 |dow when| calling|
|000008f0| 20 49 73 44 69 61 6c 6f | 67 45 76 65 6e 74 0d 2f | IsDialo|gEvent./|
|00000900| 2f 09 61 6e 64 20 44 69 | 61 6c 6f 67 53 65 6c 65 |/.and Di|alogSele|
|00000910| 63 74 2c 20 6f 6e 6c 79 | 20 64 6f 20 74 68 65 73 |ct, only| do thes|
|00000920| 65 20 74 68 69 6e 67 73 | 20 77 68 65 6e 20 61 20 |e things| when a |
|00000930| 4d 6f 64 6c 65 73 73 20 | 44 69 61 6c 6f 67 20 69 |Modless |Dialog i|
|00000940| 73 20 74 68 65 20 66 72 | 6f 6e 74 6d 6f 73 74 0d |s the fr|ontmost.|
|00000950| 2f 2f 09 77 69 6e 64 6f | 77 2e 20 28 65 2e 67 2e |//.windo|w. (e.g.|
|00000960| 2c 20 69 74 d5 73 20 65 | 76 65 6e 74 20 66 69 6c |, it.s e|vent fil|
|00000970| 74 65 72 20 69 73 20 61 | 63 74 69 76 65 29 0d 2f |ter is a|ctive)./|
|00000980| 2f 0d 2f 2f 09 4e 4f 54 | 45 3a 20 57 65 20 61 6c |/.//.NOT|E: We al|
|00000990| 77 61 79 73 20 70 61 73 | 73 20 65 76 65 6e 74 73 |ways pas|s events|
|000009a0| 20 74 68 72 6f 75 67 68 | 2c 20 65 78 63 65 70 74 | through|, except|
|000009b0| 20 77 68 65 6e 20 61 6e | 20 69 74 65 6d 20 68 61 | when an| item ha|
|000009c0| 73 20 62 65 65 6e 20 68 | 69 74 2e 0d 2f 2f 0d 2f |s been h|it..//./|
|000009d0| 2f 09 59 6f 75 20 6d 61 | 79 20 62 65 20 74 68 69 |/.You ma|y be thi|
|000009e0| 6e 6b 69 6e 67 20 74 68 | 61 74 20 69 74 20 69 73 |nking th|at it is|
|000009f0| 20 65 61 73 69 65 72 20 | 74 6f 20 6a 75 73 74 20 | easier |to just |
|00000a00| 72 65 77 72 69 74 65 20 | 74 68 65 20 44 69 61 6c |rewrite |the Dial|
|00000a10| 6f 67 20 4d 61 6e 61 67 | 65 72 20 69 6e 0d 2f 2f |og Manag|er in.//|
|00000a20| 09 74 68 69 73 20 70 72 | 6f 67 72 61 6d 2e 20 59 |.this pr|ogram. Y|
|00000a30| 6f 75 d5 72 65 20 70 72 | 6f 62 61 62 6c 79 20 72 |ou.re pr|obably r|
|00000a40| 69 67 68 74 2e 0d 0d 70 | 61 73 63 61 6c 09 57 69 |ight...p|ascal.Wi|
|00000a50| 6e 64 6f 77 52 65 66 09 | 46 72 6f 6e 74 57 69 6e |ndowRef.|FrontWin|
|00000a60| 64 6f 77 50 61 74 63 68 | 46 6f 72 44 69 61 6c 6f |dowPatch|ForDialo|
|00000a70| 67 73 28 29 3b 0d 0d 0d | 70 61 73 63 61 6c 09 57 |gs();...|pascal.W|
|00000a80| 69 6e 64 6f 77 52 65 66 | 0d 46 72 6f 6e 74 57 69 |indowRef|.FrontWi|
|00000a90| 6e 64 6f 77 50 61 74 63 | 68 46 6f 72 44 69 61 6c |ndowPatc|hForDial|
|00000aa0| 6f 67 73 28 29 0d 09 7b | 0d 09 72 65 74 75 72 6e |ogs()..{|..return|
|00000ab0| 20 54 57 69 6e 64 6f 77 | 3a 3a 46 72 6f 6e 74 4e | TWindow|::FrontN|
|00000ac0| 6f 6e 46 6c 6f 61 74 69 | 6e 67 57 69 6e 64 6f 77 |onFloati|ngWindow|
|00000ad0| 28 29 3b 0d 09 7d 0d 0d | 0d 23 64 65 66 69 6e 65 |();..}..|.#define|
|00000ae0| 09 75 70 70 46 72 6f 6e | 74 57 69 6e 64 6f 77 50 |.uppFron|tWindowP|
|00000af0| 61 74 63 68 50 72 6f 63 | 49 6e 66 6f 20 28 6b 50 |atchProc|Info (kP|
|00000b00| 61 73 63 61 6c 53 74 61 | 63 6b 42 61 73 65 64 20 |ascalSta|ckBased |
|00000b10| 7c 20 52 45 53 55 4c 54 | 5f 53 49 5a 45 28 53 49 || RESULT|_SIZE(SI|
|00000b20| 5a 45 5f 43 4f 44 45 28 | 73 69 7a 65 6f 66 28 57 |ZE_CODE(|sizeof(W|
|00000b30| 69 6e 64 6f 77 52 65 66 | 29 29 29 29 0d 0d 55 6e |indowRef|))))..Un|
|00000b40| 69 76 65 72 73 61 6c 50 | 72 6f 63 50 74 72 20 46 |iversalP|rocPtr F|
|00000b50| 72 6f 6e 74 57 69 6e 64 | 6f 77 50 61 74 63 68 55 |rontWind|owPatchU|
|00000b60| 50 50 0d 3d 20 28 55 6e | 69 76 65 72 73 61 6c 50 |PP.= (Un|iversalP|
|00000b70| 72 6f 63 50 74 72 29 20 | 4e 65 77 52 6f 75 74 69 |rocPtr) |NewRouti|
|00000b80| 6e 65 44 65 73 63 72 69 | 70 74 6f 72 28 28 50 72 |neDescri|ptor((Pr|
|00000b90| 6f 63 50 74 72 29 20 26 | 46 72 6f 6e 74 57 69 6e |ocPtr) &|FrontWin|
|00000ba0| 64 6f 77 50 61 74 63 68 | 46 6f 72 44 69 61 6c 6f |dowPatch|ForDialo|
|00000bb0| 67 73 2c 75 70 70 46 72 | 6f 6e 74 57 69 6e 64 6f |gs,uppFr|ontWindo|
|00000bc0| 77 50 61 74 63 68 50 72 | 6f 63 49 6e 66 6f 2c 47 |wPatchPr|ocInfo,G|
|00000bd0| 65 74 43 75 72 72 65 6e | 74 49 53 41 28 29 29 3b |etCurren|tISA());|
|00000be0| 0d 0d 0d 42 6f 6f 6c 65 | 61 6e 0d 54 44 69 61 6c |...Boole|an.TDial|
|00000bf0| 6f 67 57 69 6e 64 6f 77 | 3a 3a 45 76 65 6e 74 46 |ogWindow|::EventF|
|00000c00| 69 6c 74 65 72 28 45 76 | 65 6e 74 52 65 63 6f 72 |ilter(Ev|entRecor|
|00000c10| 64 20 2a 74 68 65 45 76 | 65 6e 74 29 0d 09 7b 0d |d *theEv|ent)..{.|
|00000c20| 09 47 72 61 66 50 74 72 | 09 09 09 09 6f 6c 64 50 |.GrafPtr|....oldP|
|00000c30| 6f 72 74 3b 0d 09 55 6e | 69 76 65 72 73 61 6c 50 |ort;..Un|iversalP|
|00000c40| 72 6f 63 50 74 72 09 6f | 6c 64 46 72 6f 6e 74 57 |rocPtr.o|ldFrontW|
|00000c50| 69 6e 64 6f 77 20 3d 20 | 47 65 74 54 6f 6f 6c 62 |indow = |GetToolb|
|00000c60| 6f 78 54 72 61 70 41 64 | 64 72 65 73 73 28 5f 46 |oxTrapAd|dress(_F|
|00000c70| 72 6f 6e 74 57 69 6e 64 | 6f 77 29 3b 0d 09 44 69 |rontWind|ow);..Di|
|00000c80| 61 6c 6f 67 52 65 66 09 | 09 09 61 44 69 61 6c 6f |alogRef.|..aDialo|
|00000c90| 67 3b 0d 09 42 6f 6f 6c | 65 61 6e 09 09 09 09 65 |g;..Bool|ean....e|
|00000ca0| 76 65 6e 74 48 61 73 42 | 65 65 6e 47 6f 62 62 6c |ventHasB|eenGobbl|
|00000cb0| 65 64 20 3d 20 66 61 6c | 73 65 3b 0d 09 73 68 6f |ed = fal|se;..sho|
|00000cc0| 72 74 09 09 09 09 61 44 | 69 61 6c 6f 67 49 74 65 |rt....aD|ialogIte|
|00000cd0| 6d 20 3d 20 30 3b 0d 09 | 73 68 6f 72 74 09 09 09 |m = 0;..|short...|
|00000ce0| 09 6f 6c 64 57 69 6e 64 | 6f 77 4b 69 6e 64 3b 0d |.oldWind|owKind;.|
|00000cf0| 09 0d 09 2f 2f 09 44 6f | 6e d5 74 20 73 6e 61 72 |...//.Do|n.t snar|
|00000d00| 66 20 6b 65 79 70 72 65 | 73 73 65 73 20 6d 65 61 |f keypre|sses mea|
|00000d10| 6e 74 20 66 6f 72 20 6d | 65 6e 75 73 0d 09 69 66 |nt for m|enus..if|
|00000d20| 20 28 28 74 68 65 45 76 | 65 6e 74 2d 3e 77 68 61 | ((theEv|ent->wha|
|00000d30| 74 20 3d 3d 20 6b 65 79 | 44 6f 77 6e 29 20 26 26 |t == key|Down) &&|
|00000d40| 20 28 74 68 65 45 76 65 | 6e 74 2d 3e 6d 6f 64 69 | (theEve|nt->modi|
|00000d50| 66 69 65 72 73 20 26 20 | 63 6d 64 4b 65 79 29 29 |fiers & |cmdKey))|
|00000d60| 0d 09 09 72 65 74 75 72 | 6e 20 66 61 6c 73 65 3b |...retur|n false;|
|00000d70| 0d 0d 09 47 65 74 50 6f | 72 74 28 26 6f 6c 64 50 |...GetPo|rt(&oldP|
|00000d80| 6f 72 74 29 3b 0d 09 53 | 65 74 47 72 61 66 50 6f |ort);..S|etGrafPo|
|00000d90| 72 74 4f 66 44 69 61 6c | 6f 67 20 28 20 47 65 74 |rtOfDial|og ( Get|
|00000da0| 44 69 61 6c 6f 67 52 65 | 66 20 28 29 29 3b 0d 09 |DialogRe|f ());..|
|00000db0| 0d 09 2f 2f 09 50 61 74 | 63 68 20 69 6e 20 6f 75 |..//.Pat|ch in ou|
|00000dc0| 72 20 76 65 72 73 69 6f | 6e 20 6f 66 20 46 72 6f |r versio|n of Fro|
|00000dd0| 6e 74 57 69 6e 64 6f 77 | 20 73 6f 20 74 68 61 74 |ntWindow| so that|
|00000de0| 20 49 73 44 69 61 6c 6f | 67 45 76 65 6e 74 20 77 | IsDialo|gEvent w|
|00000df0| 69 6c 6c 20 64 6f 20 74 | 68 65 20 72 69 67 68 74 |ill do t|he right|
|00000e00| 0d 09 2f 2f 09 74 68 69 | 6e 67 2e 20 44 69 61 6c |..//.thi|ng. Dial|
|00000e10| 6f 67 4d 61 6e 61 67 65 | 72 20 73 68 6f 75 6c 64 |ogManage|r should|
|00000e20| 20 63 68 65 63 6b 20 62 | 6f 74 68 20 66 72 6f 6e | check b|oth fron|
|00000e30| 74 6d 6f 73 74 20 66 6c | 6f 61 74 69 6e 67 20 61 |tmost fl|oating a|
|00000e40| 6e 64 20 66 72 6f 6e 74 | 6d 6f 73 74 0d 09 2f 2f |nd front|most..//|
|00000e50| 09 6e 6f 6e 2d 66 6c 6f | 61 74 69 6e 67 20 77 69 |.non-flo|ating wi|
|00000e60| 6e 64 6f 77 73 2c 20 68 | 6f 77 65 76 65 72 20 77 |ndows, h|owever w|
|00000e70| 65 20 64 6f 6e d5 74 20 | 73 75 70 70 6f 72 74 20 |e don.t |support |
|00000e80| 66 6c 6f 61 74 69 6e 67 | 20 64 69 61 6c 6f 67 73 |floating| dialogs|
|00000e90| 2e 0d 09 53 65 74 54 6f | 6f 6c 62 6f 78 54 72 61 |...SetTo|olboxTra|
|00000ea0| 70 41 64 64 72 65 73 73 | 28 46 72 6f 6e 74 57 69 |pAddress|(FrontWi|
|00000eb0| 6e 64 6f 77 50 61 74 63 | 68 55 50 50 2c 5f 46 72 |ndowPatc|hUPP,_Fr|
|00000ec0| 6f 6e 74 57 69 6e 64 6f | 77 29 3b 0d 0d 09 2f 2f |ontWindo|w);...//|
|00000ed0| 09 4a 61 6d 20 74 68 65 | 20 77 69 6e 64 6f 77 4b |.Jam the| windowK|
|00000ee0| 69 6e 64 20 6f 66 20 6f | 75 72 20 64 69 61 6c 6f |ind of o|ur dialo|
|00000ef0| 67 20 77 69 6e 64 6f 77 | 20 62 61 63 6b 20 74 6f |g window| back to|
|00000f00| 20 64 69 61 6c 6f 67 4b | 69 6e 64 20 73 6f 20 74 | dialogK|ind so t|
|00000f10| 68 61 74 20 74 68 65 0d | 09 2f 2f 09 44 69 61 6c |hat the.|.//.Dial|
|00000f20| 6f 67 20 4d 61 6e 61 67 | 65 72 20 63 61 6e 20 72 |og Manag|er can r|
|00000f30| 65 63 6f 67 6e 69 7a 65 | 20 6f 75 72 20 77 69 6e |ecognize| our win|
|00000f40| 64 6f 77 20 61 73 20 61 | 20 64 69 61 6c 6f 67 20 |dow as a| dialog |
|00000f50| 77 69 6e 64 6f 77 2e 0d | 09 6f 6c 64 57 69 6e 64 |window..|.oldWind|
|00000f60| 6f 77 4b 69 6e 64 20 3d | 20 47 65 74 57 69 6e 64 |owKind =| GetWind|
|00000f70| 6f 77 4b 69 6e 64 28 66 | 57 69 6e 64 6f 77 29 3b |owKind(f|Window);|
|00000f80| 0d 09 53 65 74 57 69 6e | 64 6f 77 4b 69 6e 64 28 |..SetWin|dowKind(|
|00000f90| 66 57 69 6e 64 6f 77 2c | 20 64 69 61 6c 6f 67 4b |fWindow,| dialogK|
|00000fa0| 69 6e 64 29 3b 0d 09 0d | 09 0d 09 69 66 20 28 49 |ind);...|...if (I|
|00000fb0| 73 44 69 61 6c 6f 67 45 | 76 65 6e 74 28 74 68 65 |sDialogE|vent(the|
|00000fc0| 45 76 65 6e 74 29 29 0d | 09 09 7b 0d 09 09 2f 2f |Event)).|..{...//|
|00000fd0| 09 49 74 d5 73 20 64 65 | 66 69 6e 69 74 65 6c 79 |.It.s de|finitely|
|00000fe0| 20 61 20 64 69 61 6c 6f | 67 20 65 76 65 6e 74 2c | a dialo|g event,|
|00000ff0| 20 73 6f 20 6c 65 74 20 | 74 68 65 20 44 69 61 6c | so let |the Dial|
|00001000| 6f 67 4d 67 72 20 66 69 | 67 75 72 65 20 74 68 69 |ogMgr fi|gure thi|
|00001010| 6e 67 73 20 6f 75 74 2e | 0d 09 09 2f 2f 0d 09 09 |ngs out.|...//...|
|00001020| 2f 2f 09 57 65 20 66 69 | 72 73 74 20 6c 65 74 20 |//.We fi|rst let |
|00001030| 53 74 64 46 69 6c 74 65 | 72 50 72 6f 63 20 68 61 |StdFilte|rProc ha|
|00001040| 76 65 20 61 20 63 72 61 | 63 6b 20 61 74 20 69 74 |ve a cra|ck at it|
|00001050| 20 73 6f 20 74 68 61 74 | 20 74 68 65 20 64 65 66 | so that| the def|
|00001060| 61 75 6c 74 0d 09 09 2f | 2f 09 61 6e 64 20 63 61 |ault.../|/.and ca|
|00001070| 6e 63 65 6c 20 62 75 74 | 74 6f 6e 73 20 61 72 65 |ncel but|tons are|
|00001080| 20 70 72 6f 70 65 72 6c | 79 20 70 72 6f 63 65 73 | properl|y proces|
|00001090| 73 65 64 20 28 61 73 20 | 77 65 6c 6c 20 61 73 20 |sed (as |well as |
|000010a0| 61 75 74 6f 6d 61 67 69 | 63 20 74 65 78 74 0d 09 |automagi|c text..|
|000010b0| 09 2f 2f 09 63 75 72 73 | 6f 72 20 74 72 61 63 6b |.//.curs|or track|
|000010c0| 69 6e 67 29 2e 0d 09 09 | 0d 09 09 2f 2f 09 49 66 |ing)....|...//.If|
|000010d0| 20 53 74 64 46 69 6c 74 | 65 72 50 72 6f 63 20 64 | StdFilt|erProc d|
|000010e0| 69 64 6e d5 74 20 66 69 | 6e 64 20 61 6e 79 74 68 |idn.t fi|nd anyth|
|000010f0| 69 6e 67 20 74 6f 20 64 | 6f 2c 20 67 6f 20 61 68 |ing to d|o, go ah|
|00001100| 65 61 64 20 61 6e 64 20 | 63 61 6c 6c 0d 09 09 2f |ead and |call.../|
|00001110| 2f 09 44 69 61 6c 6f 67 | 53 65 6c 65 63 74 20 74 |/.Dialog|Select t|
|00001120| 6f 20 66 69 67 75 72 65 | 20 6f 75 74 20 69 66 20 |o figure| out if |
|00001130| 74 68 65 20 75 73 65 72 | 20 64 69 64 20 61 6e 79 |the user| did any|
|00001140| 74 68 69 6e 67 20 69 6d | 70 6f 72 74 61 6e 74 2e |thing im|portant.|
|00001150| 0d 0d 09 09 2f 2f 09 49 | 73 6e d5 74 20 74 68 69 |....//.I|sn.t thi|
|00001160| 73 20 61 6c 6f 74 20 65 | 61 73 69 65 72 20 74 68 |s alot e|asier th|
|00001170| 61 6e 20 77 68 61 74 20 | 49 6e 73 69 64 65 20 4d |an what |Inside M|
|00001180| 61 63 20 73 61 79 73 20 | 74 6f 20 64 6f 3f 0d 0d |ac says |to do?..|
|00001190| 09 09 65 76 65 6e 74 48 | 61 73 42 65 65 6e 47 6f |..eventH|asBeenGo|
|000011a0| 62 62 6c 65 64 20 3d 20 | 53 74 64 46 69 6c 74 65 |bbled = |StdFilte|
|000011b0| 72 50 72 6f 63 28 20 47 | 65 74 44 69 61 6c 6f 67 |rProc( G|etDialog|
|000011c0| 52 65 66 20 28 29 2c 74 | 68 65 45 76 65 6e 74 2c |Ref (),t|heEvent,|
|000011d0| 26 61 44 69 61 6c 6f 67 | 49 74 65 6d 29 3b 0d 0d |&aDialog|Item);..|
|000011e0| 09 2f 2f 09 47 69 76 65 | 20 74 68 65 20 77 69 6e |.//.Give| the win|
|000011f0| 64 6f 77 20 61 20 63 68 | 61 6e 63 65 20 74 6f 20 |dow a ch|ance to |
|00001200| 70 72 65 2d 70 72 6f 63 | 65 73 73 20 74 68 65 20 |pre-proc|ess the |
|00001210| 65 76 65 6e 74 0d 09 2f | 2f 09 54 68 69 73 20 69 |event../|/.This i|
|00001220| 73 20 75 73 65 66 75 6c | 20 66 6f 72 20 70 65 6f |s useful| for peo|
|00001230| 70 6c 65 20 77 68 6f 20 | 77 61 6e 74 20 74 6f 20 |ple who |want to |
|00001240| 69 6d 70 6c 65 6d 65 6e | 74 20 72 65 61 64 2d 6f |implemen|t read-o|
|00001250| 6e 6c 79 20 74 65 78 74 | 20 69 74 65 6d 73 20 28 |nly text| items (|
|00001260| 66 6f 72 20 65 78 61 6d | 70 6c 65 29 0d 09 0d 09 |for exam|ple)....|
|00001270| 09 69 66 20 28 65 76 65 | 6e 74 48 61 73 42 65 65 |.if (eve|ntHasBee|
|00001280| 6e 47 6f 62 62 6c 65 64 | 20 3d 3d 20 66 61 6c 73 |nGobbled| == fals|
|00001290| 65 29 0d 09 09 09 65 76 | 65 6e 74 48 61 73 42 65 |e)....ev|entHasBe|
|000012a0| 65 6e 47 6f 62 62 6c 65 | 64 20 3d 20 74 68 69 73 |enGobble|d = this|
|000012b0| 2d 3e 46 69 6c 74 65 72 | 44 69 61 6c 6f 67 45 76 |->Filter|DialogEv|
|000012c0| 65 6e 74 20 28 20 74 68 | 65 45 76 65 6e 74 2c 20 |ent ( th|eEvent, |
|000012d0| 26 61 44 69 61 6c 6f 67 | 49 74 65 6d 20 29 3b 0d |&aDialog|Item );.|
|000012e0| 09 09 09 0d 09 2f 2f 09 | 4c 65 74 20 74 68 65 20 |.....//.|Let the |
|000012f0| 64 69 61 6c 6f 67 20 6d | 61 6e 61 67 65 72 20 64 |dialog m|anager d|
|00001300| 65 61 6c 20 77 69 74 68 | 20 74 68 65 20 65 76 65 |eal with| the eve|
|00001310| 6e 74 0d 09 09 69 66 20 | 28 65 76 65 6e 74 48 61 |nt...if |(eventHa|
|00001320| 73 42 65 65 6e 47 6f 62 | 62 6c 65 64 20 3d 3d 20 |sBeenGob|bled == |
|00001330| 66 61 6c 73 65 29 0d 09 | 09 09 65 76 65 6e 74 48 |false)..|..eventH|
|00001340| 61 73 42 65 65 6e 47 6f | 62 62 6c 65 64 20 3d 20 |asBeenGo|bbled = |
|00001350| 44 69 61 6c 6f 67 53 65 | 6c 65 63 74 28 74 68 65 |DialogSe|lect(the|
|00001360| 45 76 65 6e 74 2c 26 61 | 44 69 61 6c 6f 67 2c 26 |Event,&a|Dialog,&|
|00001370| 61 44 69 61 6c 6f 67 49 | 74 65 6d 29 3b 0d 09 09 |aDialogI|tem);...|
|00001380| 7d 0d 0d 09 2f 2f 09 52 | 65 73 74 6f 72 65 20 74 |}...//.R|estore t|
|00001390| 68 65 20 77 69 6e 64 6f | 77 4b 69 6e 64 0d 09 53 |he windo|wKind..S|
|000013a0| 65 74 57 69 6e 64 6f 77 | 4b 69 6e 64 28 66 57 69 |etWindow|Kind(fWi|
|000013b0| 6e 64 6f 77 2c 20 6f 6c | 64 57 69 6e 64 6f 77 4b |ndow, ol|dWindowK|
|000013c0| 69 6e 64 29 3b 0d 0d 09 | 2f 2f 09 50 75 74 20 46 |ind);...|//.Put F|
|000013d0| 72 6f 6e 74 57 69 6e 64 | 6f 77 20 62 61 63 6b 20 |rontWind|ow back |
|000013e0| 74 68 65 20 77 61 79 20 | 69 74 20 72 65 61 6c 6c |the way |it reall|
|000013f0| 79 20 62 65 6c 6f 6e 67 | 73 0d 09 53 65 74 54 6f |y belong|s..SetTo|
|00001400| 6f 6c 62 6f 78 54 72 61 | 70 41 64 64 72 65 73 73 |olboxTra|pAddress|
|00001410| 28 28 55 6e 69 76 65 72 | 73 61 6c 50 72 6f 63 50 |((Univer|salProcP|
|00001420| 74 72 29 20 6f 6c 64 46 | 72 6f 6e 74 57 69 6e 64 |tr) oldF|rontWind|
|00001430| 6f 77 2c 5f 46 72 6f 6e | 74 57 69 6e 64 6f 77 29 |ow,_Fron|tWindow)|
|00001440| 3b 0d 0d 09 69 66 20 28 | 65 76 65 6e 74 48 61 73 |;...if (|eventHas|
|00001450| 42 65 65 6e 47 6f 62 62 | 6c 65 64 29 0d 09 09 7b |BeenGobb|led)...{|
|00001460| 0d 09 09 74 68 69 73 2d | 3e 49 74 65 6d 48 69 74 |...this-|>ItemHit|
|00001470| 28 61 44 69 61 6c 6f 67 | 49 74 65 6d 29 3b 09 2f |(aDialog|Item);./|
|00001480| 2f 09 43 61 6c 6c 20 75 | 73 65 72 d5 73 20 6d 65 |/.Call u|ser.s me|
|00001490| 74 68 6f 64 20 74 6f 20 | 64 65 61 6c 20 77 69 74 |thod to |deal wit|
|000014a0| 68 20 61 20 68 69 74 0d | 09 09 65 76 65 6e 74 48 |h a hit.|..eventH|
|000014b0| 61 73 42 65 65 6e 47 6f | 62 62 6c 65 64 20 3d 20 |asBeenGo|bbled = |
|000014c0| 74 72 75 65 3b 0d 09 09 | 7d 0d 09 09 0d 09 53 65 |true;...|}.....Se|
|000014d0| 74 50 6f 72 74 28 6f 6c | 64 50 6f 72 74 29 3b 0d |tPort(ol|dPort);.|
|000014e0| 09 0d 09 72 65 74 75 72 | 6e 20 65 76 65 6e 74 48 |...retur|n eventH|
|000014f0| 61 73 42 65 65 6e 47 6f | 62 62 6c 65 64 3b 0d 09 |asBeenGo|bbled;..|
|00001500| 7d 0d 0d 0d 42 6f 6f 6c | 65 61 6e 0d 54 44 69 61 |}...Bool|ean.TDia|
|00001510| 6c 6f 67 57 69 6e 64 6f | 77 3a 3a 46 69 6c 74 65 |logWindo|w::Filte|
|00001520| 72 44 69 61 6c 6f 67 45 | 76 65 6e 74 28 45 76 65 |rDialogE|vent(Eve|
|00001530| 6e 74 52 65 63 6f 72 64 | 20 2a 2f 2a 74 68 65 45 |ntRecord| */*theE|
|00001540| 76 65 6e 74 2a 2f 2c 20 | 73 68 6f 72 74 20 2a 69 |vent*/, |short *i|
|00001550| 74 65 6d 48 69 74 20 29 | 0d 09 7b 0d 09 2a 69 74 |temHit )|..{..*it|
|00001560| 65 6d 48 69 74 20 3d 20 | 30 3b 0d 09 72 65 74 75 |emHit = |0;..retu|
|00001570| 72 6e 20 66 61 6c 73 65 | 3b 09 2f 2f 20 45 76 65 |rn false|;.// Eve|
|00001580| 6e 74 20 6e 6f 74 20 68 | 61 6e 64 6c 65 64 0d 09 |nt not h|andled..|
|00001590| 7d 0d 0d 0d 76 6f 69 64 | 0d 54 44 69 61 6c 6f 67 |}...void|.TDialog|
|000015a0| 57 69 6e 64 6f 77 3a 3a | 41 63 74 69 76 61 74 65 |Window::|Activate|
|000015b0| 28 42 6f 6f 6c 65 61 6e | 20 61 63 74 69 76 61 74 |(Boolean| activat|
|000015c0| 69 6e 67 29 0d 09 7b 0d | 09 45 76 65 6e 74 52 65 |ing)..{.|.EventRe|
|000015d0| 63 6f 72 64 09 09 09 66 | 61 6b 65 45 76 65 6e 74 |cord...f|akeEvent|
|000015e0| 3b 0d 0d 09 2f 2a 09 28 | 44 65 29 61 63 74 69 76 |;.../*.(|De)activ|
|000015f0| 61 74 65 73 20 61 72 65 | 20 4e 4f 54 20 61 75 74 |ates are| NOT aut|
|00001600| 6f 6d 61 67 69 63 61 6c | 6c 79 20 68 61 6e 64 6c |omagical|ly handl|
|00001610| 65 64 20 62 65 63 61 75 | 73 65 20 6f 75 72 20 66 |ed becau|se our f|
|00001620| 6c 6f 61 74 69 6e 67 0d | 09 20 2a 09 77 69 6e 64 |loating.|. *.wind|
|00001630| 6f 77 73 20 70 72 65 76 | 65 6e 74 20 72 65 61 6c |ows prev|ent real|
|00001640| 20 61 63 74 69 76 61 74 | 65 20 65 76 65 6e 74 73 | activat|e events|
|00001650| 20 66 72 6f 6d 20 65 76 | 65 72 20 62 65 69 6e 67 | from ev|er being|
|00001660| 20 67 65 6e 65 72 61 74 | 65 64 0d 09 20 2a 09 66 | generat|ed.. *.f|
|00001670| 6f 72 20 61 6e 79 20 6e | 6f 6e 2d 66 6c 6f 61 74 |or any n|on-float|
|00001680| 65 72 73 20 77 69 6e 64 | 6f 77 73 2e 0d 09 20 2a |ers wind|ows... *|
|00001690| 0d 09 20 2a 09 4f 75 72 | 20 73 74 72 61 74 65 67 |.. *.Our| strateg|
|000016a0| 79 20 69 73 20 74 6f 20 | 66 6f 6f 6c 20 74 68 65 |y is to |fool the|
|000016b0| 20 64 69 61 6c 6f 67 20 | 6d 61 6e 61 67 65 72 20 | dialog |manager |
|000016c0| 69 6e 74 6f 20 74 68 69 | 6e 6b 69 6e 67 20 74 68 |into thi|nking th|
|000016d0| 61 74 0d 09 20 2a 09 74 | 68 69 6e 67 73 20 61 72 |at.. *.t|hings ar|
|000016e0| 65 20 73 74 69 6c 6c 20 | 66 69 6e 65 20 62 79 20 |e still |fine by |
|000016f0| 70 61 73 73 69 6e 67 20 | 69 74 20 61 20 66 61 6b |passing |it a fak|
|00001700| 65 20 28 64 65 29 61 63 | 74 69 76 61 74 65 20 65 |e (de)ac|tivate e|
|00001710| 76 65 6e 74 2e 0d 09 20 | 2a 0d 09 20 2a 09 4c 75 |vent... |*.. *.Lu|
|00001720| 63 6b 69 6c 79 2c 20 77 | 65 20 64 6f 6e d5 74 20 |ckily, w|e don.t |
|00001730| 68 61 76 65 20 74 6f 20 | 70 61 74 63 68 20 46 72 |have to |patch Fr|
|00001740| 6f 6e 74 57 69 6e 64 6f | 77 20 74 6f 20 6d 61 6b |ontWindo|w to mak|
|00001750| 65 20 44 69 61 6c 6f 67 | 53 65 6c 65 63 74 0d 09 |e Dialog|Select..|
|00001760| 20 2a 09 77 6f 72 6b 20 | 66 6f 72 20 61 63 74 69 | *.work |for acti|
|00001770| 76 61 74 65 20 61 6e 64 | 20 75 70 64 61 74 65 20 |vate and| update |
|00001780| 65 76 65 6e 74 73 2e 0d | 09 20 2a 2f 0d 09 09 0d |events..|. */....|
|00001790| 09 4f 53 45 76 65 6e 74 | 41 76 61 69 6c 28 30 2c |.OSEvent|Avail(0,|
|000017a0| 26 66 61 6b 65 45 76 65 | 6e 74 29 3b 09 09 2f 2f |&fakeEve|nt);..//|
|000017b0| 09 47 65 74 20 61 6e 20 | 69 6e 74 69 61 6c 69 7a |.Get an |intializ|
|000017c0| 65 64 2c 20 62 75 74 20 | 6f 74 68 65 72 77 69 73 |ed, but |otherwis|
|000017d0| 65 20 65 6d 70 74 79 20 | 65 76 65 6e 74 20 72 65 |e empty |event re|
|000017e0| 63 6f 72 64 0d 09 0d 09 | 66 61 6b 65 45 76 65 6e |cord....|fakeEven|
|000017f0| 74 2e 77 68 61 74 20 3d | 20 61 63 74 69 76 61 74 |t.what =| activat|
|00001800| 65 45 76 74 3b 0d 09 66 | 61 6b 65 45 76 65 6e 74 |eEvt;..f|akeEvent|
|00001810| 2e 6d 65 73 73 61 67 65 | 20 3d 20 28 75 6e 73 69 |.message| = (unsi|
|00001820| 67 6e 65 64 20 6c 6f 6e | 67 29 20 47 65 74 44 69 |gned lon|g) GetDi|
|00001830| 61 6c 6f 67 52 65 66 20 | 28 29 3b 0d 09 69 66 20 |alogRef |();..if |
|00001840| 28 61 63 74 69 76 61 74 | 69 6e 67 29 0d 09 09 66 |(activat|ing)...f|
|00001850| 61 6b 65 45 76 65 6e 74 | 2e 6d 6f 64 69 66 69 65 |akeEvent|.modifie|
|00001860| 72 73 20 7c 3d 20 61 63 | 74 69 76 65 46 6c 61 67 |rs |= ac|tiveFlag|
|00001870| 3b 0d 09 65 6c 73 65 0d | 09 09 66 61 6b 65 45 76 |;..else.|..fakeEv|
|00001880| 65 6e 74 2e 6d 6f 64 69 | 66 69 65 72 73 20 26 3d |ent.modi|fiers &=|
|00001890| 20 7e 61 63 74 69 76 65 | 46 6c 61 67 3b 0d 0d 09 | ~active|Flag;...|
|000018a0| 2f 2f 09 50 61 73 73 20 | 65 76 65 6e 74 20 6f 6e |//.Pass |event on|
|000018b0| 20 74 6f 20 44 69 61 6c | 6f 67 53 65 6c 65 63 74 | to Dial|ogSelect|
|000018c0| 0d 09 0d 09 44 69 61 6c | 6f 67 52 65 66 09 61 44 |....Dial|ogRef.aD|
|000018d0| 69 61 6c 6f 67 3b 0d 09 | 73 68 6f 72 74 09 09 61 |ialog;..|short..a|
|000018e0| 44 69 61 6c 6f 67 49 74 | 65 6d 3b 0d 09 0d 09 28 |DialogIt|em;....(|
|000018f0| 76 6f 69 64 29 20 44 69 | 61 6c 6f 67 53 65 6c 65 |void) Di|alogSele|
|00001900| 63 74 28 26 66 61 6b 65 | 45 76 65 6e 74 2c 26 61 |ct(&fake|Event,&a|
|00001910| 44 69 61 6c 6f 67 2c 26 | 61 44 69 61 6c 6f 67 49 |Dialog,&|aDialogI|
|00001920| 74 65 6d 29 3b 0d 09 7d | 0d 09 0d 0d 76 6f 69 64 |tem);..}|....void|
|00001930| 0d 54 44 69 61 6c 6f 67 | 57 69 6e 64 6f 77 3a 3a |.TDialog|Window::|
|00001940| 44 72 61 77 28 76 6f 69 | 64 29 0d 09 7b 0d 09 2f |Draw(voi|d)..{../|
|00001950| 2f 09 41 75 74 6f 6d 61 | 67 69 63 61 6c 6c 79 20 |/.Automa|gically |
|00001960| 68 61 6e 64 6c 65 64 20 | 62 79 20 44 69 61 6c 6f |handled |by Dialo|
|00001970| 67 20 4d 61 6e 61 67 65 | 72 20 77 68 65 6e 20 77 |g Manage|r when w|
|00001980| 65 20 61 72 65 0d 09 2f | 2f 09 74 68 65 20 66 72 |e are../|/.the fr|
|00001990| 6f 6e 74 6d 6f 73 74 20 | 77 69 6e 64 6f 77 2c 20 |ontmost |window, |
|000019a0| 62 75 74 20 6e 6f 74 20 | 61 74 20 6f 74 68 65 72 |but not |at other|
|000019b0| 20 74 69 6d 65 73 20 62 | 65 63 61 75 73 65 0d 09 | times b|ecause..|
|000019c0| 2f 2f 09 77 65 20 6f 6e | 6c 79 20 73 65 74 20 74 |//.we on|ly set t|
|000019d0| 68 65 20 77 69 6e 64 6f | 77 4b 69 6e 64 20 74 6f |he windo|wKind to|
|000019e0| 20 64 69 61 6c 6f 67 4b | 69 6e 64 20 69 6e 73 69 | dialogK|ind insi|
|000019f0| 64 65 20 6f 75 72 0d 09 | 2f 2f 09 45 76 65 6e 74 |de our..|//.Event|
|00001a00| 46 69 6c 74 65 72 20 28 | 77 68 69 63 68 20 69 73 |Filter (|which is|
|00001a10| 20 6f 6e 6c 79 20 61 63 | 74 69 76 65 20 77 68 65 | only ac|tive whe|
|00001a20| 6e 20 77 65 20 61 72 65 | 20 66 72 6f 6e 74 6d 6f |n we are| frontmo|
|00001a30| 73 74 29 2e 0d 09 52 67 | 6e 48 61 6e 64 6c 65 09 |st)...Rg|nHandle.|
|00001a40| 75 70 64 61 74 65 20 3d | 20 4e 65 77 52 67 6e 20 |update =| NewRgn |
|00001a50| 28 29 3b 0d 09 47 65 74 | 57 69 6e 64 6f 77 55 70 |();..Get|WindowUp|
|00001a60| 64 61 74 65 52 67 6e 20 | 28 20 66 57 69 6e 64 6f |dateRgn |( fWindo|
|00001a70| 77 2c 20 75 70 64 61 74 | 65 20 29 3b 0d 09 55 70 |w, updat|e );..Up|
|00001a80| 64 61 74 65 44 69 61 6c | 6f 67 20 28 20 47 65 74 |dateDial|og ( Get|
|00001a90| 44 69 61 6c 6f 67 52 65 | 66 20 28 29 2c 20 75 70 |DialogRe|f (), up|
|00001aa0| 64 61 74 65 20 29 3b 0d | 09 44 69 73 70 6f 73 65 |date );.|.Dispose|
|00001ab0| 52 67 6e 20 28 20 75 70 | 64 61 74 65 20 29 3b 0d |Rgn ( up|date );.|
|00001ac0| 09 7d 0d 09 0d 09 0d 76 | 6f 69 64 0d 54 44 69 61 |.}.....v|oid.TDia|
|00001ad0| 6c 6f 67 57 69 6e 64 6f | 77 3a 3a 43 6c 69 63 6b |logWindo|w::Click|
|00001ae0| 28 45 76 65 6e 74 52 65 | 63 6f 72 64 20 2a 20 2f |(EventRe|cord * /|
|00001af0| 2a 20 61 6e 45 76 65 6e | 74 20 2a 2f 29 0d 09 7b |* anEven|t */)..{|
|00001b00| 0d 09 2f 2a 09 54 68 65 | 20 6f 6e 6c 79 20 74 69 |../*.The| only ti|
|00001b10| 6d 65 20 74 68 69 73 20 | 6d 65 74 68 6f 64 20 69 |me this |method i|
|00001b20| 73 20 63 61 6c 6c 65 64 | 20 69 73 20 74 6f 20 68 |s called| is to h|
|00001b30| 61 6e 64 6c 65 20 61 20 | 63 6c 69 63 6b 0d 09 20 |andle a |click.. |
|00001b40| 2a 09 77 68 65 6e 20 74 | 68 65 20 64 69 61 6c 6f |*.when t|he dialo|
|00001b50| 67 20 77 69 6e 64 6f 77 | 20 69 73 6e d5 74 20 66 |g window| isn.t f|
|00001b60| 72 6f 6e 74 6d 6f 73 74 | 2e 20 41 6c 6c 20 6f 74 |rontmost|. All ot|
|00001b70| 68 65 72 20 74 69 6d 65 | 73 2c 0d 09 20 2a 09 44 |her time|s,.. *.D|
|00001b80| 69 61 6c 6f 67 53 65 6c | 65 63 74 20 77 69 6c 6c |ialogSel|ect will|
|00001b90| 20 64 6f 20 65 76 65 72 | 79 74 68 69 6e 67 20 66 | do ever|ything f|
|00001ba0| 6f 72 20 75 73 2e 0d 09 | 20 2a 0d 09 20 2a 09 49 |or us...| *.. *.I|
|00001bb0| 66 20 6f 75 72 20 64 69 | 61 6c 6f 67 20 63 6f 6e |f our di|alog con|
|00001bc0| 74 61 69 6e 73 20 75 73 | 65 72 69 74 65 6d 73 20 |tains us|eritems |
|00001bd0| 77 69 74 68 20 74 68 65 | 20 61 62 69 6c 69 74 79 |with the| ability|
|00001be0| 20 74 6f 0d 09 20 2a 09 | 62 65 20 74 68 65 20 73 | to.. *.|be the s|
|00001bf0| 6f 75 72 63 65 20 6f 66 | 20 61 20 64 72 61 67 20 |ource of| a drag |
|00001c00| 77 65 d5 64 20 6e 65 65 | 64 20 74 6f 20 73 74 61 |we.d nee|d to sta|
|00001c10| 72 74 20 64 72 61 67 20 | 74 72 61 63 6b 69 6e 67 |rt drag |tracking|
|00001c20| 0d 09 20 2a 09 69 6e 20 | 68 65 72 65 2e 0d 09 20 |.. *.in |here... |
|00001c30| 2a 2f 0d 09 20 0d 09 74 | 68 69 73 2d 3e 53 65 6c |*/.. ..t|his->Sel|
|00001c40| 65 63 74 28 29 3b 0d 09 | 7d 0d 0d 09 0d 76 6f 69 |ect();..|}....voi|
|00001c50| 64 0d 54 44 69 61 6c 6f | 67 57 69 6e 64 6f 77 3a |d.TDialo|gWindow:|
|00001c60| 3a 41 64 6a 75 73 74 4d | 65 6e 75 73 42 65 66 6f |:AdjustM|enusBefo|
|00001c70| 72 65 4d 65 6e 75 53 65 | 6c 65 63 74 69 6f 6e 28 |reMenuSe|lection(|
|00001c80| 76 6f 69 64 29 0d 09 7b | 0d 09 54 45 48 61 6e 64 |void)..{|..TEHand|
|00001c90| 6c 65 09 74 65 68 20 3d | 20 47 65 74 44 69 61 6c |le.teh =| GetDial|
|00001ca0| 6f 67 54 65 78 74 45 64 | 69 74 20 28 20 47 65 74 |ogTextEd|it ( Get|
|00001cb0| 44 69 61 6c 6f 67 52 65 | 66 20 28 29 29 3b 0d 09 |DialogRe|f ());..|
|00001cc0| 42 6f 6f 6c 65 61 6e 09 | 09 76 61 6c 69 64 53 65 |Boolean.|.validSe|
|00001cd0| 6c 65 63 74 69 6f 6e 20 | 3d 20 74 65 68 20 21 3d |lection |= teh !=|
|00001ce0| 20 4e 55 4c 4c 20 26 26 | 20 28 20 28 2a 74 65 68 | NULL &&| ( (*teh|
|00001cf0| 29 2d 3e 73 65 6c 53 74 | 61 72 74 20 21 3d 20 28 |)->selSt|art != (|
|00001d00| 2a 74 65 68 29 2d 3e 73 | 65 6c 45 6e 64 20 29 3b |*teh)->s|elEnd );|
|00001d10| 0d 09 0d 09 67 4d 65 6e | 75 42 61 72 2d 3e 45 6e |....gMen|uBar->En|
|00001d20| 61 62 6c 65 43 6f 6d 6d | 61 6e 64 20 28 20 63 43 |ableComm|and ( cC|
|00001d30| 75 74 2c 20 20 20 76 61 | 6c 69 64 53 65 6c 65 63 |ut, va|lidSelec|
|00001d40| 74 69 6f 6e 20 29 3b 0d | 09 67 4d 65 6e 75 42 61 |tion );.|.gMenuBa|
|00001d50| 72 2d 3e 45 6e 61 62 6c | 65 43 6f 6d 6d 61 6e 64 |r->Enabl|eCommand|
|00001d60| 20 28 20 63 43 6f 70 79 | 2c 20 20 76 61 6c 69 64 | ( cCopy|, valid|
|00001d70| 53 65 6c 65 63 74 69 6f | 6e 20 29 3b 0d 09 67 4d |Selectio|n );..gM|
|00001d80| 65 6e 75 42 61 72 2d 3e | 45 6e 61 62 6c 65 43 6f |enuBar->|EnableCo|
|00001d90| 6d 6d 61 6e 64 20 28 20 | 63 50 61 73 74 65 2c 20 |mmand ( |cPaste, |
|00001da0| 74 72 75 65 20 29 3b 09 | 2f 2f 20 77 65 20 72 65 |true );.|// we re|
|00001db0| 61 6c 6c 79 20 73 68 6f | 75 6c 64 20 63 68 65 63 |ally sho|uld chec|
|00001dc0| 6b 20 74 68 65 20 73 63 | 72 61 70 0d 09 67 4d 65 |k the sc|rap..gMe|
|00001dd0| 6e 75 42 61 72 2d 3e 45 | 6e 61 62 6c 65 43 6f 6d |nuBar->E|nableCom|
|00001de0| 6d 61 6e 64 20 28 20 63 | 43 6c 65 61 72 2c 20 76 |mand ( c|Clear, v|
|00001df0| 61 6c 69 64 53 65 6c 65 | 63 74 69 6f 6e 20 29 3b |alidSele|ction );|
|00001e00| 0d 0d 09 67 4d 65 6e 75 | 42 61 72 2d 3e 45 6e 61 |...gMenu|Bar->Ena|
|00001e10| 62 6c 65 43 6f 6d 6d 61 | 6e 64 20 28 20 63 53 65 |bleComma|nd ( cSe|
|00001e20| 6c 65 63 74 41 6c 6c 2c | 20 74 65 68 20 21 3d 20 |lectAll,| teh != |
|00001e30| 4e 55 4c 4c 20 29 3b 0d | 09 7d 0d 0d 0d 42 6f 6f |NULL );.|.}...Boo|
|00001e40| 6c 65 61 6e 0d 54 44 69 | 61 6c 6f 67 57 69 6e 64 |lean.TDi|alogWind|
|00001e50| 6f 77 3a 3a 44 6f 4d 65 | 6e 75 43 6f 6d 6d 61 6e |ow::DoMe|nuComman|
|00001e60| 64 28 4d 65 6e 75 43 6f | 6d 6d 61 6e 64 49 44 20 |d(MenuCo|mmandID |
|00001e70| 63 6f 6d 6d 61 6e 64 29 | 0d 09 7b 0d 09 44 69 61 |command)|..{..Dia|
|00001e80| 6c 6f 67 52 65 66 09 74 | 68 65 44 69 61 6c 6f 67 |logRef.t|heDialog|
|00001e90| 20 3d 20 20 47 65 74 44 | 69 61 6c 6f 67 52 65 66 | = GetD|ialogRef|
|00001ea0| 20 28 29 3b 0d 0d 09 73 | 77 69 74 63 68 20 28 63 | ();...s|witch (c|
|00001eb0| 6f 6d 6d 61 6e 64 29 0d | 09 09 7b 0d 09 09 63 61 |ommand).|..{...ca|
|00001ec0| 73 65 09 63 55 6e 64 6f | 3a 0d 09 09 09 62 72 65 |se.cUndo|:....bre|
|00001ed0| 61 6b 3b 0d 09 09 09 0d | 09 09 63 61 73 65 09 63 |ak;.....|..case.c|
|00001ee0| 43 75 74 3a 0d 09 09 09 | 44 69 61 6c 6f 67 43 75 |Cut:....|DialogCu|
|00001ef0| 74 28 74 68 65 44 69 61 | 6c 6f 67 29 3b 0d 09 09 |t(theDia|log);...|
|00001f00| 09 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 09 09 |.return |true;...|
|00001f10| 09 0d 09 09 63 61 73 65 | 09 63 43 6f 70 79 3a 0d |....case|.cCopy:.|
|00001f20| 09 09 09 44 69 61 6c 6f | 67 43 6f 70 79 28 74 68 |...Dialo|gCopy(th|
|00001f30| 65 44 69 61 6c 6f 67 29 | 3b 20 0d 09 09 09 72 65 |eDialog)|; ....re|
|00001f40| 74 75 72 6e 20 74 72 75 | 65 3b 0d 09 09 09 0d 09 |turn tru|e;......|
|00001f50| 09 63 61 73 65 09 63 50 | 61 73 74 65 3a 0d 09 09 |.case.cP|aste:...|
|00001f60| 09 44 69 61 6c 6f 67 50 | 61 73 74 65 28 74 68 65 |.DialogP|aste(the|
|00001f70| 44 69 61 6c 6f 67 29 3b | 20 0d 09 09 09 72 65 74 |Dialog);| ....ret|
|00001f80| 75 72 6e 20 74 72 75 65 | 3b 0d 09 09 09 0d 09 09 |urn true|;.......|
|00001f90| 63 61 73 65 09 63 43 6c | 65 61 72 3a 0d 09 09 09 |case.cCl|ear:....|
|00001fa0| 44 69 61 6c 6f 67 44 65 | 6c 65 74 65 28 74 68 65 |DialogDe|lete(the|
|00001fb0| 44 69 61 6c 6f 67 29 3b | 20 0d 09 09 09 72 65 74 |Dialog);| ....ret|
|00001fc0| 75 72 6e 20 74 72 75 65 | 3b 0d 0d 09 09 63 61 73 |urn true|;....cas|
|00001fd0| 65 09 63 53 65 6c 65 63 | 74 41 6c 6c 3a 0d 09 09 |e.cSelec|tAll:...|
|00001fe0| 09 53 65 6c 65 63 74 44 | 69 61 6c 6f 67 49 74 65 |.SelectD|ialogIte|
|00001ff0| 6d 54 65 78 74 20 28 20 | 74 68 65 44 69 61 6c 6f |mText ( |theDialo|
|00002000| 67 2c 20 47 65 74 44 69 | 61 6c 6f 67 4b 65 79 62 |g, GetDi|alogKeyb|
|00002010| 6f 61 72 64 46 6f 63 75 | 73 49 74 65 6d 20 28 20 |oardFocu|sItem ( |
|00002020| 74 68 65 44 69 61 6c 6f | 67 20 29 2c 20 30 2c 20 |theDialo|g ), 0, |
|00002030| 33 32 37 36 37 20 29 3b | 0d 09 09 09 72 65 74 75 |32767 );|....retu|
|00002040| 72 6e 20 74 72 75 65 3b | 0d 0d 09 09 64 65 66 61 |rn true;|....defa|
|00002050| 75 6c 74 3a 0d 09 09 09 | 62 72 65 61 6b 3b 0d 09 |ult:....|break;..|
|00002060| 09 7d 0d 0d 2f 2f 09 49 | 66 20 77 65 20 64 6f 6e |.}..//.I|f we don|
|00002070| 27 74 20 68 61 6e 64 6c | 65 20 69 74 2c 20 74 68 |'t handl|e it, th|
|00002080| 65 6e 20 6c 65 74 20 74 | 68 65 20 73 75 70 65 72 |en let t|he super|
|00002090| 2d 63 6c 61 73 73 20 68 | 61 6e 64 6c 65 20 69 74 |-class h|andle it|
|000020a0| 0d 09 72 65 74 75 72 6e | 20 54 57 69 6e 64 6f 77 |..return| TWindow|
|000020b0| 3a 3a 44 6f 4d 65 6e 75 | 43 6f 6d 6d 61 6e 64 20 |::DoMenu|Command |
|000020c0| 28 20 63 6f 6d 6d 61 6e | 64 20 29 3b 0d 09 7d 0d |( comman|d );..}.|
|000020d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002100| 00 00 01 00 00 00 02 5c | 00 00 01 5c 00 00 00 66 |.......\|...\...f|
|00002110| 65 44 61 74 61 52 65 66 | 4e 75 6d 29 3b 0d 09 44 |eDataRef|Num);..D|
|00002120| 69 73 70 6f 73 50 74 72 | 28 28 50 74 72 29 66 4c |isposPtr|((Ptr)fL|
|00002130| 0f 44 69 61 6c 6f 67 57 | 69 6e 64 6f 77 2e 63 70 |.DialogW|indow.cp|
|00002140| 02 00 00 00 54 45 58 54 | 4d 4d 43 43 01 00 ff ff |....TEXT|MMCC....|
|00002150| 00 00 54 45 58 54 4d 4d | 43 43 01 00 ff ff ff ff |..TEXTMM|CC......|
|00002160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002170| 00 00 a6 74 2b 30 00 00 | 20 50 00 00 02 c2 66 57 |...t+0..| P....fW|
|00002180| 69 6e 64 6f 77 29 3b 0d | 09 44 69 73 70 6f 73 50 |indow);.|.DisposP|
|00002190| 74 72 28 28 50 74 72 29 | 66 57 69 6e 64 6f 77 29 |tr((Ptr)|fWindow)|
|000021a0| 3b 0d 09 72 65 74 75 72 | 6e 28 74 72 75 65 29 3b |;..retur|n(true);|
|000021b0| 0d 09 7d 0d 09 0d 42 6f | 6f 6c 65 61 6e 09 54 4c |..}...Bo|olean.TL|
|000021c0| 69 63 65 6e 73 65 44 69 | 61 6c 6f 67 3a 3a 44 65 |icenseDi|alog::De|
|000021d0| 6c 65 74 65 4f 6e 43 6c | 6f 73 65 28 29 0d 09 7b |leteOnCl|ose()..{|
|000021e0| 0d 09 72 65 74 75 72 6e | 28 74 72 75 65 29 3b 0d |..return|(true);.|
|000021f0| 09 7d 0d 09 0d 76 6f 69 | 64 09 54 4c 69 63 65 6e |.}...voi|d.TLicen|
|00002200| 00 00 00 1e 00 2a 00 04 | 03 57 02 00 00 2a 00 04 |.....*..|.W...*..|
|00002210| 03 5f 02 3f 00 00 00 00 | 00 00 00 00 00 00 00 00 |._.?....|........|
|00002220| 00 00 00 00 00 e2 6b 98 | 43 1f 3f e5 32 30 00 04 |......k.|C.?.20..|
|00002230| 00 00 00 01 00 00 00 00 | ab 45 2d bb ab 45 2d ba |........|.E-..E-.|
|00002240| aa 81 1d 14 00 98 85 cc | 00 02 00 08 00 08 1a 53 |........|.......S|
|00002250| 70 72 6f 63 6b 65 74 50 | 72 6f 6a ba 53 70 72 6f |procketP|roj.Spro|
|00002260| 63 6b 65 74 ba 4c 69 62 | ba 00 0f 44 61 76 65 20 |cket.Lib|...Dave |
|00002270| 46 61 6c 6b 65 6e 62 75 | 72 67 00 01 38 00 0f 44 |Falkenbu|rg..8..D|
|00002280| 69 61 6c 6f 67 57 69 6e | 64 6f 77 2e 63 70 00 00 |ialogWin|dow.cp..|
|00002290| 00 00 74 44 65 61 6c 20 | 77 69 74 68 20 6e 65 77 |..tDeal |with new|
|000022a0| 20 6d 65 6e 75 20 63 6f | 6d 6d 61 6e 64 20 63 68 | menu co|mmand ch|
|000022b0| 61 6e 67 65 73 2e 20 41 | 6c 73 6f 20 66 69 78 65 |anges. A|lso fixe|
|000022c0| 64 20 62 75 67 20 77 68 | 65 72 65 20 77 65 20 77 |d bug wh|ere we w|
|000022d0| 65 72 65 6e d5 74 20 64 | 69 73 70 6f 73 69 6e 67 |eren.t d|isposing|
|000022e0| 20 6f 66 20 54 44 69 61 | 6c 6f 67 57 69 6e 64 6f | of TDia|logWindo|
|000022f0| 77 73 20 75 73 69 6e 67 | 20 44 69 73 70 6f 73 65 |ws using| Dispose|
|00002300| 44 69 61 6c 6f 67 2e 00 | 00 00 00 48 00 09 4d 6f |Dialog..|...H..Mo|
|00002310| 6e 61 63 6f 00 00 00 00 | 00 00 00 00 00 00 00 00 |naco....|........|
|00002320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 03 |........|........|
|00002330| 00 04 00 57 00 1c 01 d9 | 02 7b 00 57 00 1c 01 d9 |...W....|.{.W....|
|00002340| 02 7b ad 0f 43 3d 00 00 | 05 1b 00 00 05 1b 00 00 |.{..C=..|........|
|00002350| 04 84 01 00 00 00 00 04 | 00 01 00 01 00 00 01 00 |........|........|
|00002360| 00 00 02 5c 00 00 01 5c | 00 00 00 66 00 df 47 98 |...\...\|...f..G.|
|00002370| 10 88 00 00 00 1c 00 66 | 00 02 4d 50 53 52 00 01 |.......f|..MPSR..|
|00002380| 00 1a 63 6b 69 64 00 00 | 00 32 4d 57 42 42 00 00 |..ckid..|.2MWBB..|
|00002390| 00 3e 03 f0 ff ff 00 00 | 00 00 00 00 00 00 03 ed |.>......|........|
|000023a0| ff ff 00 00 01 08 00 00 | 00 00 00 80 ff ff 00 00 |........|........|
|000023b0| 00 22 00 00 00 00 03 f0 | ff ff 00 00 01 54 00 00 |."......|.....T..|
|000023c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+